﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShoppingCart.ascx.cs" Inherits="UserControlSupport_ShoppingCart" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<table style="width: 100%;">
    <tr>
        <td colspan="3">
            Thông Tin Giỏ Hàng Của Bạn</td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
                BorderStyle="None" BorderWidth="1px" CellPadding="3" EnableViewState="False" 
                GridLines="Vertical">
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <Columns>
                    <asp:TemplateField HeaderText="Hình ảnh chi tiết">
                        <ItemTemplate>
                            <asp:Image ID="image" runat="server" AlternateText="Chưa có hình" 
                                ImageUrl="<%# Bind('imageurl') %>" />
                        </ItemTemplate>
                    </asp:TemplateField>
<asp:BoundField DataField="proname" HeaderText="Tên SP"></asp:BoundField>
<asp:BoundField DataField="size" HeaderText="Kích thước"></asp:BoundField>
                    <asp:BoundField DataField="color" 
                        HeaderText="Màu sắc" />
                    <asp:BoundField DataField="number" HeaderText="Số lượng" />
                    <asp:BoundField HeaderText="Giá" 
                        DataField="price" />
                    <asp:BoundField DataField="sum" HeaderText="Thành tiền" />
                    <asp:TemplateField HeaderText="Tùy chỉnh">
                        <ItemTemplate>
                            <table class="style1">
                                <tr>
                                    <td>
                                        <asp:HyperLink ID="Edit" runat="server" NavigateUrl="<%# Bind('edit') %>">Chỉnh 
                                        sửa</asp:HyperLink>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="delete" runat="server" CommandArgument="<%# Bind('delete') %>" 
                                            oncommand="DeleteClick" Text="Xóa" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
</table>
